/******************************
************script.js**********
******************************/
$(function(){
	$(".headerTab li a").click(function(){
		$(this).addClass("active");
		$(this).parents("li").siblings("li").children("a").removeClass("active");
	});
	setAlpha();
    $(window).resize(function() {
        setAlpha();
    });
	$(".table1 tbody tr td div.tdHover").hover(
		function(){
			$(this).children(".box").css("display","block");
			$(this).children("a").css("text-decoration","underline");
		},
		function(){
			$(this).children(".box").css("display","none");
			$(this).children("a").css("text-decoration","none");
		});
	$(".closePopsup").click(function(){
		$(".popup").css("display","none");
		$("#alpha").css("display","none");
	});
	$(".button1").click(function(){
		$(".popup").css("display","none");
		$("#alpha").css("display","none");
    });
    $(".dbBtn").click(function() {
        $(".popup").css("display", "none");
        $("#alpha").css("display", "none");
    });


	
	
	
	
	
	
	
	
	
	
	
	
	
});

function setAlpha() {
    var alphaWidth;
    var alphaHeight;

    if ($(window).width() > $("body").width()) {
        alphaWidth = $(window).width();
    }
    else {
        alphaWidth = $("body").width();
    }
    
    if ($(window).height() > $("body").height()) {
        alphaHeight = $(window).height();
    }
    else {
        alphaHeight = $("body").height();
    }

    $("#alpha").width(alphaWidth);
    $("#alpha").height(alphaHeight);
}
